<template>
  <div class="community">
    <nav-bar></nav-bar>
    <div class="page-main clearfix">
      <div class="page-left">
        <div class="xyd-container">
          <div class="xyd-c-title">
            选择你感兴趣的话题
          </div>
          <div class="xyd-c-content">
            todo
          </div>
        </div>
      </div>
      <div class="page-right">
        <div class="xyd-container">
          <div class="xyd-c-title">群名称</div>
          <div class="xyd-c-content">
            {{group.name}}
          </div>
        </div>
        <div class="xyd-container">
          <div class="xyd-c-title">群简介</div>
          <div class="xyd-c-content">
            {{group.intro}}
          </div>
        </div>
        <div class="xyd-container">
          <div class="xyd-c-title">申请加群</div>
          <div class="xyd-c-content">
            <div class="img-group">
              <img :src="group.qq_url" alt=""/>
              <img :src="group.wechat_url" alt=""/>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import { NavBar } from 'views/layout'
import { getCummunity } from 'api/org'
export default {

  name: 'community',
  components: {
    NavBar
  },
  data() {
    return {
      group: {}
    };
  },
  created() {
    getCummunity()
    .then(res => {
      console.log(res)
      this.group = res.group
    })
    .catch(err => console.log(err))
  }
};
</script>

<style rel="stylesheet/scss" lang="scss" scoped>
.community{
  .page-main{
    .page-left{
      .xyd-container{

      }
    }
    .page-right{
      .xyd-container{
        .xyd-c-title{

        }
        .xyd-c-content{
          padding: 50px;
          .img-group{
            text-align: center;
            >img{
              margin-right: 30px;
            }
          }
        }
      }
    }
  }
}
</style>